
// Square.cpp: implementation of the Square class.
//
//////////////////////////////////////////////////////////////////////

#include "Square.h"

const double minBoundary = 0.00;
const double highBoundary = 75.00;
const compareFunc compareMinBoundary = isGreat;
const compareFunc compareHighBoundary = isLess;

Square::Square(double length)
:Rectangle(length, length)
{
}

bool Square::isValid() const
{
    return (checkInputValid(length_m, minBoundary, compareMinBoundary)
            && checkInputValid(length_m, highBoundary, compareHighBoundary));
}






